package gwtmodule1.client.gui.admin;

import gwtmodule1.client.gui.utils.DekoTable;
import gwtmodule1.client.gui.utils.FrameClient;
import gwtmodule1.client.gui.utils.Title;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.VerticalPanel;

public class PageAdminIndustrialCustomer extends VerticalPanel implements FrameClient{

	private class ApproveTable extends DekoTable {

		public ApproveTable() {
			super();
			addTitle("First Name");
			addTitle("Last Name");
			addTitle("");
		}
		
		public void addItem(String first, String last) {
			AddRow r = addRow();
			r.add(first);
			r.add(last);
			r.add(new Button("Approve"));
		}
		
		
	} 
	

	public PageAdminIndustrialCustomer() {
		super();
		add(new Title("Approve Industrial Customers"));
		ApproveTable t = new ApproveTable();
		t.addItem("Max", "Mustermann");
		t.addItem("Ingo", "Schwergewicht");
		t.addItem("Peter", "Siebling");
		add(t);		
	}

	public void onShow(Object param) {
	}

}
